<tr>
  <%product = Product.find(cart_item.product_id)%>
  <td class="action_link">
    <a href="/products/<%=cart_item.product_id%>" rel="#overlay" style="text-decoration:none" class="action_view">查看</a>
  </td>
  <td>
    <div>
      <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="50" height="50" id="duoduo" align="middle">
        <param name="allowScriptAccess" value="sameDomain" />
        <param name="FlashVars" value="product_id=<%=product.id%>" />
        <param name="allowFullScreen" value="false" />
        <param name="wmode" value="transparent">
        <param name="movie" value="/flash/pics50.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />
        <embed  wmode="transparent" src="/flash/pics50.swf?product_id=<%=product.id%>" quality="high" bgcolor="#ffffff" width="50" height="50" name="duoduo" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
      </object>
    </div>
  </td>
  <td>
    <%= cart_item.tee_size %>
  </td>
  <td>
    <span class="yen" id="p_price"><%= product.price%></span>
  </td>

  <td>
    <a href="javascript:void(0);" onclick="increaseFromCart(<%=cart_item.product_id%>,'<%=cart_item.tee_size%>')">
      <img src="/images/add.gif" alt="+" />
    </a>
    <span id="p_quantity"><%= cart_item.quantity %></span>
    <a href="javascript:void(0);" onclick="decreaseFromCart(<%=cart_item.product_id%>,'<%=cart_item.tee_size%>')">
       <img src="/images/delete.gif" alt="-" />
    </a>
  </td>

  <td>
    <span class="yen" id="p_total"><%= cart_item.price %></span>
  </td>
  <td class="action_link">
    <%  if product.material.style.sex == 1 %>
      <% flash_path = "/store/for_him" %>
    <%  elsif product.material.style.sex == 0 %>
      <% flash_path = "/store/for_her" %>
    <%  end %>
    <a href="<%=flash_path%>?product[id]=<%=product.id%>"  class="action_edit">修改</a>
  </td>
  <td class="action_link">
    <a href="javascript:void(0);" onclick="removeFromCart(<%=cart_item.product_id%>,'<%=cart_item.tee_size%>')" class="action_delete">删除</a>
  </td>
</tr>







